home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / July 96 / Re RE>Hiliting and system hilit < prev    next >
Encoding:
Internet Message Format  |  1996-07-10  |  1.2 KB  |  [TEXT/ttxt]

  1. Subject:     Re:RE>Hiliting and system hilite colour in ODF?
  2. Sent:        7/10/96 8:09 AM
  3. Received:    7/10/96 8:46 AM
  4. From:        Greg Friedman, friedman@cognosis.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. Rob Cope wrote:
  9. >                                                                  Date:
  10. >7/10/96
  11. > Subject:  RE>Hiliting and system hilite colour in ODF?          Time:
  12. >9:18 AM
  13. > I haven't found a way to do it in ODF either.  In fact, I can't even find
  14. >how to do it without poking around in the GrafPort.  Here is what I do,
  15. >which works, but I would love to have a better way.
  16. >
  17. >     #if defined(FW_BUILD_MAC)
  18. >         GrafPtr    curPort;
  19. >         ::GetPort(&curPort);
  20. >         FW_CColor hColor
  21. >(((GrafVars*)*((CGrafPort*)curPort)->grafVars)->rgbHiliteColor);
  22. >     #else
  23. >         FW_Color hColor = FW_kRGBBlack;
  24. >     #endif
  25.  
  26. I would use LMGetHiliteRGB, as Serge suggested. If you want to use this
  27. method, you can get to the current port by looking directly at
  28.  
  29. FW_QDGlobals.thePort
  30.  
  31. FW_QDGlobals is defined in FWStdDef.h.
  32.  
  33. Greg.
  34.  
  35.  
  36. _________________________________________________________
  37. Greg Friedman      ODF Engineering       Apple Computer
  38.  
  39.  
  40.